﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class CTKHTraHangDTO
    {
        #region "Khai báo các biến"
        private string _maMH;
        private string _maKHTH;
        private int _soluong;
        private double _dongia;
        private float _chietkhau;
        private double _thanhtien; 
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaMH
        {
            get { return _maMH; }
            set { _maMH = value; }
        }
        [DataMember]
        public string MaKHTH
        {
            get { return _maKHTH; }
            set { _maKHTH = value; }
        }
        [DataMember]
        public int Soluong
        {
            get { return _soluong; }
            set { _soluong = value; }
        }
        [DataMember]
        public double Dongia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }
        [DataMember]
        public float Chietkhau
        {
            get { return _chietkhau; }
            set { _chietkhau = value; }
        }
        [DataMember]
        public double Thanhtien
        {
            get { return _thanhtien; }
            set { _thanhtien = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public CTKHTraHangDTO() { }
        public CTKHTraHangDTO(string mamh, string makhth, int soluong, double dongia, float chietkhau,double thanhtien)
        {
            MaMH = mamh;
            MaKHTH = makhth;
            Soluong = soluong;
            Dongia = dongia;
            Chietkhau = chietkhau;
            Thanhtien = thanhtien;
        }
        public CTKHTraHangDTO(CTKHTraHangDTO CTKHTraHang)
        {
            this.MaMH = CTKHTraHang.MaMH;
            this.MaKHTH = CTKHTraHang.MaKHTH;
            this.Soluong = CTKHTraHang.Soluong;
            this.Dongia = CTKHTraHang.Dongia;
            this.Chietkhau = CTKHTraHang.Chietkhau;
            this.Thanhtien = CTKHTraHang.Thanhtien;
        }
        #endregion
    }
}